package user;

public class ShopCar { //封装商品.
    private String phoneNumber; //商品所有者
    private String name;//商品名字
    private int number;//箱子数目，橘子论箱卖
    private float price;//价格
    private float TotalPrice = 0;

    public ShopCar() {

    }

    public ShopCar(String phoneNumber, int number, float price, String name) {
        this.phoneNumber = phoneNumber;
        this.number = number;
        this.price = price;
        this.name = name;
        TotalPrice = number * price;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getTotalPrice() {
        return TotalPrice;
    }

    public void setTotalPrice(float totalPrice) {
        TotalPrice = totalPrice;
    }
}
